#ifndef __CONNECTION_FACTORY_included
#define __CONNECTION_FACTORY_included

#include <string>
#include <boost/shared_ptr.hpp>
class CConnectionControl;
class CConnection;

using namespace std;

class CConnectionFactory {

public :
	static boost::shared_ptr<CConnection> CreateByServerDesc(string& server, boost::shared_ptr<CConnectionControl> control_conn, bool bind_parent);
	static boost::shared_ptr<CConnection> CreateByPeer(string& peer, boost::shared_ptr<CConnectionControl> control_conn, bool bind_parent);

};
#endif //__CONNECTION_FACTORY_included